<div class="header">
    <div class="container">
        <div class="logo-box">
            <a href="/">yunni的博客</a>
        </div>

        <ul class="nav">
            <li class="active"><a href="/">博客文章</a></li>
            <li class="video"><a href="{% url 'video:video_index' %}">视频资源</a></li>
            <li class="images"><a href="{% url 'images:images_index' %}">图片资源</a></li>
            <li class="search"><a href="{% url 'search' %}">全站搜索</a></li>
        </ul>

        <div class="auth-box">
            <i class="iconfont icon-yonghu"></i>
            {% if user.is_authenticated %}
                <div class="auth-info">
                    <a href="#" class="authenticated-box">{{ user.username }}</a>
                    <div class="auth-list">
                        <ul>
                            {% if user.is_staff %}
                                <li><a href="{% url 'cms:index' %}">管理系统</a></li>
                            {% endif %}
                            <li><a href="#">个人中心</a></li>
                            <li><a href="{% url 'ynauth:logout' %}">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            {% else %}
                <a href="#" id="signin-btn">登录</a> /
                <a href="#" id="signup-btn">注册</a>
            {% endif %}
        </div>
    </div>
</div>